/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package scrolllistexample;

import java.awt.*;
import javax.swing.*;

/**
 *
 * @author eid
 */
public class ScrollListFrame extends JFrame {
    ScrollListPanel myScrollListPanel;

    public ScrollListFrame() {

        // Set the title.
        setTitle("Scroll List Demo");

        // Specify an action for the close button.
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        // Add a BorderLayout manager.
        setLayout(new BorderLayout());

        myScrollListPanel = new ScrollListPanel();
        add(myScrollListPanel, BorderLayout.CENTER);
        pack();
        setVisible(true);

    }
}
